
<h3>财务管理
    <small>发票管理</small>
</h3>
<div  ng-controller="invoiceCtrl" class="panel panel-default">
    <div class="businessState" ng-repeat="orderInvoicesItem in orderInvoices" >
        <div ng-if="orderInvoicesItem.orderInvoiceId==orderInvoiceId" >
            <span ng-click="hide()">×</span>
            <h4>更改业务状态</h4>
            <div class="radio">
                <label>
                    <input type="radio" name="inp"  value="0"  ng-model="type" >
                    待处理
                </label>
            </div>
            <div class="radio">
                <label>
                    <input  type="radio"  name="inp"  value="1"  ng-model="type" >
                    处理中
                </label>
            </div>
            <div class="radio">
                <label>
                    <input type="radio"  name="inp"  value="2"   ng-model="type" >
                    已寄出
                </label>
            </div>
            <div class="btn">
                <button ng-click="hide()"  class="btn defalut btn-sm">取消</button>
                <button ng-click="confirm(type)" class="btn btn-primary btn-sm" >确认</button>
            </div>
        </div>
    </div>
    <div class="panel-body " ng-class="loading?'whirl standard':'' " style="border-top: 1px solid #CFDBE2;">
        <table class="table table-striped table-condensed">
            <thead>
            <tr>
                <th>编号</th>
                <th>姓名</th>
                <th>申请时间</th>
                <th>开票金额</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <!-- repeat begin -->
            <tr ng-repeat=" orderInvoicesItem in orderInvoices ">
                <td>{{orderInvoicesItem.orderInvoiceId}}</td>
                <td>{{orderInvoicesItem.name}}</td>
                <td>{{orderInvoicesItem.createTime}}</td>
                <td>{{orderInvoicesItem.money}}</td>
                <td>{{orderInvoicesItem.status|states}}</td>
                <td>
                    <a tooltip="预览" tooltip-trigger="mouseenter" class="btn btn-xs btn-primary" ui-sref="cms.invoiceDetail({orderInvoiceId:orderInvoicesItem.orderInvoiceId})"><i class="fa fa-eye"></i></a>
                    <a tooltip="更改业务状态" tooltip-trigger="mouseenter" class="btn btn-xs btn-danger" ng-click="operate(orderInvoicesItem.orderInvoiceId,orderInvoicesItem.status)"><i class="icon-pencil"></i></a>
                </td>
            </tr>
            <!-- repeat end -->
            </tbody>
        </table>
        <p style="display: inline-block; margin:21px 0;height: 30px;line-height: 30px;"> 显示 <strong>{{turnPage.totalItems}}</strong> 条中的 <strong>{{turnPage.itemsPerPage*(turnPage.currentPage-1)+1}}-{{ToNum}}</strong> 条</p>
        <pagination class="pull-right" first-text="{{turnPage.firstText}}" previous-text="{{turnPage.previousText}}" next-text="{{turnPage.nextText}}" last-text="{{turnPage.lastText}}" total-items="turnPage.totalItems" ng-model="turnPage.currentPage" max-size="turnPage.maxSize" num-pages="numPages" boundary-links="true" ng-change="dataChange()" class="pagination-sm">
        </pagination>
    </div>
</div>